package test;
/**
 * Instances of this class convert between Celsius and Fahrenheit temperatures
 */

public class TempConverter {

	/**
	 * converts Celsius temperatures to Fahrenheit
	 * @param temp temperature in degrees Celsius
	 * @returns temperature in degrees Fahrenheit
	 */
	 public double c2f(double temp) {
		return 1.8 * temp + 32;
	}

	/**
	 * converts Fahrenheit temperatures to Celsius
		 * @param temp temperature in degrees Fahrenheit
		 * @returns temperature in degrees Celsius
	 */
	public double f2c(double temp) {
		return .556 * (temp - 32);
	}


}